{if isset($files) and $files|@count}
<div class="uploaded">
    {foreach from=$files item=entry}
    <div class="files"><a href="{url query=$entry.url}&action=download" target="_new">{$entry.name}</a></div>
    {if isset($allow_delete) and $allow_delete}<div class="links"><a href="{url query=$entry.url}&action=delete-file" class="delete">Delete</a></div>{/if}
    <div class="clear"></div>
    {/foreach}
</div>
{/if}